package com.sanpu.kxe.business.trade.contract;

import android.text.TextWatcher;
import android.widget.EditText;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.business.trade.bean.BillTypeOutput;
import com.sanpu.kxe.business.trade.bean.TransactionOutput;
import com.sanpu.kxe.jump.eventbus.FilterEvent;

import java.util.List;

/**
 * Description：账单
 * Created by 薛勇军 on 2018/8/27.
 */

public interface TransactionContract {

    interface View extends IBaseExtraView<Presenter> {
        /**
         * 显示账单列表
         */
        void showTransactionListView(List<TransactionOutput> outputs, boolean isFirst);

        /**
         * 上拉加载状态
         */
        void showLoadMore(String loadMore);

        /**
         * 显示全部分类
         */
        void showBillTypeView(List<BillTypeOutput> billTypeOutputs);
    }

    interface Presenter extends IBasePresenter {

        /**
         * 账单列表
         */
        void getBillList(int nowPage, FilterEvent mFilterEvent);

        /**
         * 账单分类
         */
        void getBillType();

        /**
         * 输入框监听
         */
        TextWatcher getTextWatcher(EditText editText);
    }
}
